<?
session_start();
include('conn.php');

$qry1 = "SELECT * from bankmast where status=0 and bankid<>1 order by bankid desc";

$qry = mysql_query($qry1);
$data = array();
$i=1;
while($rows = mysql_fetch_array($qry))
{
	$data[] = array("Sr_NO" => $i++,
					"bankname" => $rows['bankname'],
					"Address" => $rows['address'],
					"City" => $rows['city']);
}
echo json_encode($data);
?>